{* Smarty *}

<div id="main_header">{t}{$command}{/t}</div>
{if !empty($msg)}
	<div id="error"><tt>{$msg}</tt></div>
{/if}
<div class="box">
	<form action="/admin/modules/save_status" method="post">
	<table cellspacing="0">
		<caption>{t}module status caption{/t}</caption>
		<tr>
			<th width="10%" class="left">{t}name{/t}</th>
			<th width="70%" class="left">{t}description{/t}</th>
			<th>{t}enabled{/t}</th>
		</tr>
		{foreach from=$modules item=module}
		<tr>
			<td width="10%" class="module_name">{$module.name}</td>
			<td width="70%" class="module_desc">{$module.description}</td>
			{if $module.name == 'admin' OR $module.name == 'main' OR $module.name == 'user' }
			<td class="required">{t}required{/t}</td>
			{else}
				{if $module.status == 1}
			<td><input type="checkbox" name="modules[]" value="{$module.name}" checked="checked"></td>
				{else}
			<td><input type="checkbox" name="modules[]" value="{$module.name}"></td>
				{/if}
			{/if}
		{/foreach}
		</tr>
	</table>
	<input type="submit" value="{t}submit{/t}" />
	</form>
</div>
<div class="spacer"></div>
<div class="box">
	<form action="/admin/modules" method="post" name="display_modules">
		<input type="hidden" name="display_all_modules" value="1">
	<table cellspacing="0">
		<caption>{t}display modules block below the admin module{/t}</caption>
		<tr>
			<th colspan="2">{t}configuration{/t}</th>
		</tr>
		<tr>
			<td class="left">{t}Display modules block{/t}</td>
<!-- checked="checked" -->
			<td><input type="checkbox" name="display_all_modules" {if $display_all_modules} checked="true"{/if} onclick="this.form.submit();"></td>
		</tr>
	</table>
	</form>
</div>